package com.example.demo.common.utils;

import com.example.demo.domian.UserVo;

import java.util.HashMap;
import java.util.Map;

/**
 * @Name RedisUtil
 * @Description 模拟reids工具类
 * @Author wen
 * @Date 2020-03-28
 */
public class RedisUtil {

    private static Map<String, String> map = new HashMap<>();

    static {
        map.put("938da236-7d31-4c3d-96c8-054a6a0452fa", JsonUtil.serialize(UserVo.builder().id(10086L).name("刘菲菲").age(18).build()));
    }

    public static String get(String key){
        return map.get(key);
    }
}
